package cn.iocoder.yudao.module.agent.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

public interface ErrorCodeConstants {
    ErrorCode USER_NOT_EXISTS = new ErrorCode(0_0001_0001, "代理人不存在");

    ErrorCode BROKERAGE_USER_NOT_EXISTS = new ErrorCode(0_0001_0002, "分销人不存在");

    ErrorCode BROKERAGE_RECORD_NOT_EXISTS = new ErrorCode(0_0001_0003, "佣金记录不存在");
    ErrorCode BROKERAGE_WITHDRAW_RECORD_NOT_EXISTS = new ErrorCode(0_0001_0004, "提现记录不存在");
    ErrorCode WITHDRAW_ACCOUNT_NOT_EXISTS = new ErrorCode(0_0001_0005, "提现账户不存在");

    ErrorCode AGENT_NOT_ENABLED = new ErrorCode(0_0001_0005, "代理人被禁用");

    ErrorCode BROKERAGE_USER_FROZEN_PRICE_NOT_ENOUGH = new ErrorCode(0_0001_0006, "用户冻结佣金({})数量不足");

    ErrorCode BROKERAGE_USER_INCR_ERR = new ErrorCode(0_0001_0007, "增加总提现金额失败");

    ErrorCode BROKERAGE_ACCOUNT_NOT_EXISTS = new ErrorCode(0_0002_0001, "分销人账户不存在");

    ErrorCode BROKERAGE_ACCOUNT_HAS_BINDED_TARGET = new ErrorCode(0_0002_0001, "会员已经被您绑定，不能重复绑定");

    ErrorCode BROKERAGE_ACCOUNT_HAS_BINDED_OTHER = new ErrorCode(0_0002_0001, "会员已经被其他代理绑定");

    ErrorCode BROKERAGE_NOT_ENOUGH = new ErrorCode(0_0003_0001, "佣金余额不足");

    ErrorCode BROKERAGE_WITHDRAW_STATUS_NOT_AUDITING = new ErrorCode(0_0003_0002, "佣金提现状态不是审核中");

    ErrorCode BROKERAGE_CLUE_NOT_EXISTS = new ErrorCode(0_0004_0001, "代理人分销用户线索不存在");

    ErrorCode BROKERAGE_CLUE_HAD_EXISTS = new ErrorCode(0_0004_0002, "该线索已被绑定");

    ErrorCode BROKERAGE_CLUE_ADD_INVALID = new ErrorCode(0_0004_0003, "您无权添加线索，请先成为代理人");
}
